// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SALES_DELIVERY_FEEDBACK
// * CreateDate    : 2011/8/16 10:16:41
// * Creater       : CodeSmith
// * LastChangeDate: 2011/8/16 10:16:41
// * LastChanger   : 2011/8/16 10:16:41
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class SalesDeliveryFeedbackEntity : EntityBase
    {
        public SalesDeliveryFeedbackTable TableSchema
        {
            get
            {
                return SalesDeliveryFeedbackTable.Current;
            }
		}
		
		public SalesDeliveryFeedbackEntity()
        {

        }
		
		public SalesDeliveryFeedbackEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.FeedbackId = Convert.ToString(CommonFunctions.ToObject(dr["FEEDBACK_ID"]));
			this.DeliveryOrderId = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_ORDER_ID"]));
			this.FeedbackCode = Convert.ToString(CommonFunctions.ToObject(dr["FEEDBACK_CODE"]));
			this.DeliveryPerson = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_PERSON"]));
			this.DeliveryDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["DELIVERY_DATE"]));
			this.ReceivedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_PERSON"]));
			this.ReceivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECEIVED_DATE"]));
			this.DeliveryType = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_TYPE"]));
			this.PostNo = Convert.ToString(CommonFunctions.ToObject(dr["POST_NO"]));
			this.DeliveryAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["DELIVERY_AMOUNT"]));
			this.FeeType = Convert.ToString(CommonFunctions.ToObject(dr["FEE_TYPE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
        }
		
		public SalesDeliveryFeedbackEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.FeedbackId = Convert.ToString(CommonFunctions.ToObject(dr["FEEDBACK_ID"]));
			this.DeliveryOrderId = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_ORDER_ID"]));
			this.FeedbackCode = Convert.ToString(CommonFunctions.ToObject(dr["FEEDBACK_CODE"]));
			this.DeliveryPerson = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_PERSON"]));
			this.DeliveryDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["DELIVERY_DATE"]));
			this.ReceivedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_PERSON"]));
			this.ReceivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECEIVED_DATE"]));
			this.DeliveryType = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_TYPE"]));
			this.PostNo = Convert.ToString(CommonFunctions.ToObject(dr["POST_NO"]));
			this.DeliveryAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["DELIVERY_AMOUNT"]));
			this.FeeType = Convert.ToString(CommonFunctions.ToObject(dr["FEE_TYPE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SalesDeliveryFeedbackTable.Current;
            }
        }
		
		#region Perporty List
        public string FeedbackId
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_FEEDBACK_ID)); }
            set { SetData(SalesDeliveryFeedbackTable.C_FEEDBACK_ID, value); }
        }
		
        public string DeliveryOrderId
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_DELIVERY_ORDER_ID)); }
            set { SetData(SalesDeliveryFeedbackTable.C_DELIVERY_ORDER_ID, value); }
        }
		
        public string FeedbackCode
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_FEEDBACK_CODE)); }
            set { SetData(SalesDeliveryFeedbackTable.C_FEEDBACK_CODE, value); }
        }
		
        public string DeliveryPerson
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_DELIVERY_PERSON)); }
            set { SetData(SalesDeliveryFeedbackTable.C_DELIVERY_PERSON, value); }
        }
		
        public DateTime DeliveryDate
        {
            get { return Convert.ToDateTime(GetData(SalesDeliveryFeedbackTable.C_DELIVERY_DATE)); }
            set { SetData(SalesDeliveryFeedbackTable.C_DELIVERY_DATE, value); }
        }
		
        public string ReceivedPerson
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_RECEIVED_PERSON)); }
            set { SetData(SalesDeliveryFeedbackTable.C_RECEIVED_PERSON, value); }
        }
		
        public DateTime ReceivedDate
        {
            get { return Convert.ToDateTime(GetData(SalesDeliveryFeedbackTable.C_RECEIVED_DATE)); }
            set { SetData(SalesDeliveryFeedbackTable.C_RECEIVED_DATE, value); }
        }
		
        public string DeliveryType
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_DELIVERY_TYPE)); }
            set { SetData(SalesDeliveryFeedbackTable.C_DELIVERY_TYPE, value); }
        }
		
        public string PostNo
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_POST_NO)); }
            set { SetData(SalesDeliveryFeedbackTable.C_POST_NO, value); }
        }
		
        public decimal DeliveryAmount
        {
            get { return Convert.ToDecimal(GetData(SalesDeliveryFeedbackTable.C_DELIVERY_AMOUNT)); }
            set { SetData(SalesDeliveryFeedbackTable.C_DELIVERY_AMOUNT, value); }
        }
		
        public string FeeType
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_FEE_TYPE)); }
            set { SetData(SalesDeliveryFeedbackTable.C_FEE_TYPE, value); }
        }
		
        public string Status
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_STATUS)); }
            set { SetData(SalesDeliveryFeedbackTable.C_STATUS, value); }
        }
		
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(SalesDeliveryFeedbackTable.C_CREATED_DATE)); }
            set { SetData(SalesDeliveryFeedbackTable.C_CREATED_DATE, value); }
        }
		
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_CREATED_BY)); }
            set { SetData(SalesDeliveryFeedbackTable.C_CREATED_BY, value); }
        }
		
        public DateTime LastModifiedDate
        {
            get { return Convert.ToDateTime(GetData(SalesDeliveryFeedbackTable.C_LAST_MODIFIED_DATE)); }
            set { SetData(SalesDeliveryFeedbackTable.C_LAST_MODIFIED_DATE, value); }
        }
		
        public string LastModifiedBy
        {
            get { return Convert.ToString(GetData(SalesDeliveryFeedbackTable.C_LAST_MODIFIED_BY)); }
            set { SetData(SalesDeliveryFeedbackTable.C_LAST_MODIFIED_BY, value); }
        }
		
		#endregion
	}
	
	
}	

